package com.bianguo.android.tencentpushdemo.view.activity;

import android.os.Bundle;
import android.support.v7.widget.RecyclerView;

import com.bianguo.android.tencentpushdemo.R;
import com.bianguo.android.tencentpushdemo.adapters.CommentAdapter;

import java.util.ArrayList;

import butterknife.BindView;

public class TestActivity extends BaseActivity {

    @BindView(R.id.test_recycler)
    RecyclerView testRecycler;

    private CommentAdapter commentAdapter;
    private ArrayList<String> comments;

    @Override
    public int layoutId() {
        return R.layout.activity_test;
    }

    @Override
    public void initView(Bundle savedInstanceState) {
        comments = new ArrayList<>();
        for (int i = 0; i < 30; i++) {
            comments.add("item " + i);
        }
        commentAdapter = new CommentAdapter(this, comments);
        testRecycler.setAdapter(commentAdapter);
    }

    @Override
    public void initData() {

    }
}
